﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KinTN_WMS_CL.Model
{
    [Table("TaskManagement")]
    public class TaskManagements : ModelBase
    {
        /// <summary>
        /// 来源
        /// </summary>
        [Column("Source")]
        [Required]
        public string Source { set; get; }

        /// <summary>
        /// 出处
        /// </summary>
        [Column("Provenance")]
        [Required]
        public string Provenance { set; get; }
        /// <summary>
        /// 状态
        /// </summary>
        [Column("Status")]
        [Required]
        public string Status { set; get; }

        /// <summary>
        /// 执行单号
        /// </summary>
        [Column("ExecutionCode")]
        public string? ExecutionCode { set; get; }
        /// <summary>
        /// 返回状态
        /// </summary>
        [Column("ReturnStatus")]

        public string? ReturnStatus { set; get; }

        /// <summary>
        /// 返回结果
        /// </summary>
        [Column("ReturnResult")]

        public string? ReturnResult { set; get; }
        /// <summary>
        /// 任务类型
        /// </summary>
        [Column("TaskType")]
        [Required]
        public TaskType TaskType { set; get; }
    }
}
